<?php
/**
 * User: @fs
 * Date: 2017-9-16
 * Time: 17:21
 */
namespace core\lib;
use       core\lib\conf;

class log{
    static $class;
   static public function init(){
       //确定存储方式
       $drive=conf::get('DRIVE','log');

       //加载namespace
       $class = "\core\lib\drive\log\\".$drive;

       self::$class = new $class;
   }


    static public function log($message,$flie='log'){
        self::$class->log($message,$flie);
    }
}